public class test {

    
	/**
	 * @param args
	 */
    /*
	public static void main(String[] args) {
		try{
			Class.forName("org.apache.derby.jdbc.EmbeddedDriver").newInstance();
		String connS = "jdbc:derby:unilearn;create=true";
		DABase.setConnString(connS);
		DataFile testInsert = new DataFile();
		String path = "C:\\Users\\james\\homework\\HIT8098 - Agile Development Project\\UniLearn\\";
		java.io.File image = new java.io.File (path + "test.jpg");
		testInsert.setFile(image);
		testInsert.setFileName("abc.jpg");

		//DAFile.insert(testInserttestInsert);
			System.out.println(FileFacade.insertFile(testInsert) + " is the new ID");
			testInsert.setFileName("bob.jpg");
			System.out.println(FileFacade.insertFile(testInsert) + " is the new ID");
			DataFile testSelect = DAFile.getByFileID(2);
			System.out.println(testSelect.getFileID() + " - " + testSelect.getFileName());
			
			//Write file to disk
			FileOutputStream out = new FileOutputStream(path + testSelect.getFileName());
			out.write(testSelect.getFileData());
			out.close();
		} catch(SQLException e) {
			System.out.println(e.getMessage());
		} catch(Exception e) {
			System.out.println(e.getMessage());
		}

	}
        
        */

}
